package com.downhometech.productcalculator.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
 
public class AddItemActivity  extends Activity 
{
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.cart);
	    
	    Button addProductButton = (Button) findViewById(R.id.AddProductButton);
	    
	    addProductButton.setOnClickListener(new View.OnClickListener() {
	 	   public void onClick(View view) {
	 		   addProduct();
	 		   finish();
	 	   }
	    });
	}

	private void addProduct() {
	   Intent intent = new Intent(this, ItemListActivity.class);
		//i.putExtra("_id", id);
	   startActivityForResult(intent, 3);
	}
	   
}